<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org"
	xmlns:dt="http://github.com/dandelion/datatables"
	xmlns:sec="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<title>Edit Use Case</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="Dhrubo" />




</head>

<body>

	<table class="condition" th:fragment="exceptions">
		<thead>
			<tr>
				<th colspan="3">Exceptions</th>
			</tr>

			<tr>
				<th colspan="3">

					<form action="addexception" method="post">


						<input type="hidden" name="usecase" th:value="${useCase.id}" />


						<div class="input-append span10">
							<input class="input span12" id="description" type="text"
								placeholder="Description" name="description" />
							<button class="btn btn-success" type="submit">Save</button>
						</div>



					</form>
				</th>

			</tr>

			<tr>
				<th style="width: 5%">Sl#</th>

				<th>Description</th>
				<th style="width: 3%">Action</th>
			</tr>
		</thead>
		<tbody>


			<tr th:each="p, rowStat : ${useCase.exceptions}">
				<td style="width: 5%" th:text="${rowStat.count}">1</td>
				<td th:text="${p}"></td>

				<td><a
					th:href="@{/deleteexception(usecase=${useCase.id}, index=${rowStat.index})}"
					class="btn btn-danger"><i class="icon-remove-sign icon-white"
						title="Delete"></i></a></td>
			</tr>

		</tbody>
	</table>


	

</body>
</html>
